<%--
	author:
	time:2011-5-11 14:37:47
--%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %> 
<%@include file="/commons/include/html_doctype.html"%>
<html>
<head>
<title>明细</title>
<%@include file="/commons/include/getById.jsp" %>
<script type="text/javascript">
$(function(){
	$(".form_title").css("width", "19%");
	$.post("${ctx}/manage/sys/dept/getDeptByUserid.htm",{userid:"${user.id}"},function(data){
		$("#td_dept").text(eval(data.get("name")));
	});
	$.post("${ctx}/manage/sys/position/getPositionByUserid.htm",{userid:"${user.id}"},function(data){
		$("#td_position").text(eval(data.get("name")));
	});
});
</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">用户信息明细</td>
		<td>
			<div class="menuTool">
			  <a class="back" onClick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
        <c:if test="${user.pid!=0}">
			<tr>
				<td class="form_title">帐号：</td>
				<td class="form_input">${fn:escapeXml(user.account)}</td>
			</tr>
		</c:if>
		<tr>
          <td class="form_title">用户代码：</td>
          <td class="form_input">${user.userCode}</td>
        </tr>
        <tr>
		  <td class="form_title">客户代码：</td>
		  <td class="form_input">${user.customCode}</td>
	  </tr>
		<tr>
		  <td class="form_title">出生日期：</td>
		  <td class="form_input"><fmt:formatDate pattern="yyyy-MM-dd" value="${user.dateOfBirth}" /></td>
	  </tr>
		<tr>
		  <td class="form_title">性别：</td>
		  <td class="form_input"><c:if test="${user.gender == 1}">男</c:if>
	      <c:if test="${user.gender == 2}">女</c:if>
	      </td>
	  </tr>
		<tr>
		  <td class="form_title">用户性质：</td>
		  <td class="form_input"><c:if test="${user.userNature == 1}">公司员工</c:if>
            <c:if test="${user.userNature == 2}">经销商或客户</c:if></td>
	  </tr>
		<tr>
		  <td class="form_title">公司/代码：</td>
		  <td class="form_input">${user.coName}/${user.coCode}</td>
	  </tr>
		<tr>
		  <td class="form_title">部门：</td>
		  <td class="form_input">${user.deptName}/${user.deptCode}</td>
	  </tr>
		<tr>
		  <td class="form_title">职位：</td>
		  <td class="form_input">${user.duty}</td>
	  </tr>
		<tr>
		  <td class="form_title">手机号码：</td>
		  <td class="form_input">${user.mobile}</td>
	  </tr>
		<tr>
		  <td class="form_title">办公电话：</td>
		  <td class="form_input">${user.phone}</td>
	  </tr>
		<tr>
		  <td class="form_title">传真：</td>
		  <td class="form_input">${user.fax}</td>
	  </tr>
		<tr>
		  <td class="form_title">EMAIL：</td>
		  <td class="form_input">${user.email}</td>
	  </tr>
      <tr>
		  <td class="form_title">申请状态：</td>
		  <td class="form_input">${cfn:getUserStatusText(d.userStatus)}</td>
	  </tr>
	</table>
</body>
</html>
